/*
** my.h for my_printf in /home/nadali_t//local/svn/tek2ed/my_printf
** 
** Made by thomas nadalie
** Login   <nadali_t@epitech.net>
** 
** Started on  Sun Nov 18 16:32:21 2012 thomas nadalie
** Last update Sun Nov 18 18:18:50 2012 thomas nadalie
*/

#ifndef		__MY_H__
#define	__MY_H__

#include	<stdarg.h>
#include	<strings.h>

# define	DECI	"0123456789"
# define	OCTAL	"01234567"
# define	HEXA	"0123456789ABCDEF"
# define	BIN	"01"

char		*make_param(char *format);
char            *my_strdup(const char *src);
char		*convert_func(int nb, char *base, int i, int count2);
char		*convert_base(char *nbr, char *base_from, char *base_to);

int		my_printf(const char *format, ...);
int		catch_opt(const char *format, va_list ap);
int		my_strcpr(char *str, char *str2);
int             epur_buff(char *buff, int i);
int		my_strlen(const char *str);
int		my_getnbr(char *str);

void		opt_d(va_list ap);
void		opt_s(va_list ap);
void		opt_o(va_list ap);
void		opt_u(va_list ap);
void		opt_x(va_list ap);
void		opt_xx(va_list ap);
void		opt_c(va_list ap);
void		opt_percent(va_list ap);
void		opt_b(va_list ap);

void		my_putchar(char c);
void		my_put_nbr(int nb);
void		my_showtab(char **tab);
void		init_flagtab(char *tab);
void		my_put_error(char *str);
void		my_putstr(const char *str);
void            my_bzero(char *b, size_t size);
void		init_functab(void (**functab)(va_list));

#endif
